<template>
  <view>
    <video class="video" v-if="videoPath" :src="videoPath" controls></video>
  </view>
</template>

<script>
export default {
  data() {
    return {
      baseUrl: "",
      videoPath: "",
    };
  },
  onLoad(e) {
    console.log(e, "?e");
    if (e.path) {
      this.videoPath = decodeURIComponent(e.path);
    }
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.video {
  width: 100%;
  height: 100vh;
}
</style>